<h1>Listing cards</h1>

<table>
  <tr>
  </tr>
  
<% for card in @cards %>
  <tr>
    <td><%= link_to 'Show', card_path(card) %></td>
    <td><%= link_to 'Edit', edit_card_path(card) %></td>
    <td><%= link_to 'Destroy', card_path(card), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New card', new_card_path %>